package com.hpeu_01.day0107.homework;

public class W {
    public static void main(String[] args) {
        InterfaceA interfaceA = new ClassA();
        System.out.println("计算1到n的和:"+interfaceA.method(5));
        InterfaceA interfaceA1 = new ClassB();
        System.out.println("计算n的阶乘（n!）:"+interfaceA1.method(5));

        int i =50;
        i = (i++)*2;
        System.out.println(i);
    }
}
